/**
 * https://leetcode-cn.com/problems/kids-with-the-greatest-number-of-candies/
 * 儿童节特供
 * @param {number[]} candies
 * @param {number} extraCandies
 * @return {boolean[]}
 */
var kidsWithCandies = function(candies, extraCandies) {
  let result = []
  for (let i = 0;i<candies.length;i++){
      if(Math.max(candies[i] + extraCandies,...candies) === candies[i] + extraCandies){
        result.push(true)
      }
      else {
        result.push(false)
      }
  }
  return result
};
